
document.addEventListener('DOMContentLoaded', function() {

  const input_code = document.querySelector('input[type="password"]');
  const eyeIcon = document.querySelector('.eye');
  

  let isPasswordVisible = false;
  

  eyeIcon.addEventListener('click', function() {
    isPasswordVisible = !isPasswordVisible;
    
    if (isPasswordVisible) {

      input_code.type = 'text';
      eyeIcon.src = 'img/eye_open.svg'; 
    } else {
      input_code.type = 'password';
      eyeIcon.src = 'img/eye.svg'; 
    }
  });
});

// @jsj2501-zzj